﻿using Admin.NET.Core;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 学期
/// </summary>
[SugarTable("XuenianXueqi","学期")]
public class XuenianXueqi  : EntityBase
{
    /// <summary>
    /// 学年
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Xuenian", ColumnDescription = "学年")]
    public int Xuenian { get; set; }
    
    /// <summary>
    /// 学期
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Xueqi", ColumnDescription = "学期")]
    public int Xueqi { get; set; }
    
    /// <summary>
    /// 学期代码
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Code", ColumnDescription = "学期代码", Length = 32)]
    public string Code { get; set; }
    
    /// <summary>
    /// 学期名称
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Fullname", ColumnDescription = "学期名称", Length = 32)]
    public string Fullname { get; set; }
    
    /// <summary>
    /// 开学时间
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "StartDate", ColumnDescription = "开学时间")]
    public DateTime StartDate { get; set; }
    
    /// <summary>
    /// 当前学期
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "IsCurrent", ColumnDescription = "当前学期")]
    public bool IsCurrent { get; set; }
    
    /// <summary>
    /// 隐藏
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "IsHidden", ColumnDescription = "隐藏")]
    public bool IsHidden { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnName = "Beizhu", ColumnDescription = "备注", Length = 32)]
    public string? Beizhu { get; set; }
    
}
